/*

	vars.prg
	Declaracion de constantes y variables
	
*/

CONST

	// pantalla
	SCREEN_X = 640;
	SCREEN_Y = 480;
	
	//estados de un character
	IDLE 		= "idle";
	WALKING = "walking";
	CROUCH 	= "crouch";
	JUMPING 		= "jumping";
	
	
END

TYPE _interval
		int  init;
		int  final;
END 

TYPE _vector3D
		int  varX;
		int  varY;
		int  varZ;
END 
	
GLOBAL

	_interval current_state_frames;
	
	_interval IDLE_FRAMES 		= 10,10;
	_interval WALKING_FRAMES = 11, 16; 
	_interval ATTACK_FRAMES 	= 1, 6;
	_interval CROUCH_FRAMES 	= 7, 7;
	_interval JUMPING_FRAMES	= 8, 9;

//	_vector3D currentDirection = 0, 0, 0;
	landed = false;
	landedTime = 0;
	JUMP_DELAY = 8;


	// modo debug
	int DEBUGMODE = true;

	// Exit Countdown
	int countdown = 30;
	int shouldExit = 0;

	// IDs de textos
	int txtDebug;
	
	// nivel del juego
	int gameLevel = 1;

END

